
include $(TOP_DIR)/build/common.mk

TARGET = lindcamera

INCLUDE_PATH = $(OUT_DIR)/include/

LOCAL_INCLUDE = -I$(INCLUDE_PATH)/ \
	-I$(FRAMEWORK_DIR)/base/lindutils/

LOCAL_LIBRIARY = -L$(OUT_DIR)/lib/ \
	-lldutils -lmpp_source -llindcomponent -lpthread

ifeq ($(CONFIG_ENABLE_LIVESINK), 1)
LOCAL_CFLAGS += -DENABLE_LIVE
endif

SRC = $(wildcard *.c)

all:
	$(CC) $(SRC) -o $(TARGET) $(LOCAL_LIBRIARY) $(LOCAL_INCLUDE) $(EXTRA_CFLAGS) $(LOCAL_CFLAGS) -Wl,--allow-shlib-undefined
	mv $(TARGET) $(OUT_DIR)/bin/$(TARGET)

clean:
	rm -rf $(OUT_DIR)/bin/$(TARGET)
